import request from '@/utils/request'



export function projectinitiationapplicationAdd(data) { //立项申请-添加
    return request({
        url: '/project-management/api/projectInitiation/add',
        method: 'POST',
        data
    })
}
export function projectinitiationapplicationEdit(data) { //立项申请-修改
    return request({
        url: '/project-management/api/projectInitiation/edit',
        method: 'post',
        data
    })
}
export function projectinitiationapplicationDetail(data) { //立项申请-详情
    return request({
        url: '/project-management/api/projectInitiation/detail',
        method: 'post',
        data
    })
}
export function projectinitiationapplicationList(data) { //立项申请查看-列表
    return request({
        url: '/project-management/api/projectInitiation/page',
        method: 'POST',
        data
    })
}
export function projectinitiationapplicationListAllShenpi(data) { //立项申请查看-审批列表
    return request({
        url: '/project-management/api/project/process/audit/initiation/page',
        method: 'POST',
        data
    })
}
export function projectinitiationapplicationExport(data) { //立项申请查看-导出
    return request({
        url: '/project-management/api/projectInitiation/export/word',
        method: 'POST',
        responseType: 'arraybuffer',
        data
    })
}
export function projectinitiationapplicationRecall(data) { //立项申请查看-撤回
    return request({
        url: '/project-management/api/project/process/audit/recall',
        method: 'POST',
        data
    })
}

export function projectinitiationapplicationDelete(data) { //立项申请查看-删除
    return request({
        url: '/project-management/api/projectInitiation/del',
        method: 'POST',
        data
    })
}
export function projectinitiationapplicationSubmit(data) { //立项申请查看-提交
    return request({
        url: '/project-management/api/project/process/audit/commit',
        method: 'POST',
        data
    })
}
export function projectinitiationapplicationListAll(data) { //立项申请查看-查所有流程
    return request({
        url: '/project-management/api/project/process/config/all',
        method: 'POST',
        data
    })
}
export function projectinitiationapplicationSaveSubmit(data) { //立项申请查看-保存并提交
    return request({
        url: '/project-management/api/projectInitiation/commit',
        method: 'POST',
        data
    })
}


export function projectinitiationapplicationapproveHistory(data) { //项目审批，查询审批记录
    return request({
        url: '/project-management/api/project/process/audit/logs',
        method: 'POST',
        data
    })
}

export function projectinitiationapplicationaudit(data) { //审批
    return request({
        url: '/project-management/api/project/process/audit/audit',
        method: 'POST',
        data
    })
}


